class Review < ActiveRecord::Base
  belongs_to :article
  belongs_to :user
  belongs_to :document

  validates_presence_of :article, :user, :document
  validates_numericality_of :novelty_rating, :literature_review_rating, :thesis_and_argument_rating, :findings_rating, :impression_rating
  validates_presence_of :novelty_comments, :literature_review_comments, :thesis_and_argument_comments, :findings_comments, :impression_comments
    
  def self.ratings
    ['1','2','3','4','5']
  end

end
